

<script>


import {SysMixin} from '@/mixins/SysMixin'
import defaultSettings from '@/config/defaultSettings'
import pageSetting from '@/components/lt/codeGenerator/pageSetting'
import ExtForm from '@/components/lt/codeGenerator/components/ExtForm'
import ExtTable from '@/components/lt/codeGenerator/components/ExtTable'
import request from '@/utils/request'
import Vue from 'vue'
import ExtRow from '@/components/lt/codeGenerator/components/ExtRow'
import ExtTree from '@/components/lt/codeGenerator/components/ExtTree'
import ExtButtonItem from '@/components/lt/codeGenerator/components/ExtButtonItem'
import ExtQueryForm from '@/components/lt/codeGenerator/components/ExtQueryForm'

export default {
    name:'pagePreview',
    components:{ExtForm,ExtTable,ExtRow,ExtTree,ExtButtonItem,ExtQueryForm},
    mixins:[SysMixin],
    props:{
        SysPage:{
            type:Object,
            default:()=>{},
            required:true
        }
      
    },
    created(){
        this.initSysPageMethods(this.SysPage.pageData.code.methods)
    },
    data(){
        return{
            defaultSettings,
            title:'',
            isLoaded:false,
            data:{}
        }
    },

    methods:{
         
    },
    render: function(h) {
        if(this.SysPage.pageData.components){
            return(
                <div>
                    {this.initSysPageComponents(h,this.SysPage.pageData.components)}
                </div>  
            )
        }
        
    }
   
}
</script>


